Trace Mode

A trace listing is generated in one of three modes, Step, Continuous, or Filtered.

Trace Off

Select this option to discontinue a current trace.

Trace Step

Select this option to step through the trace listing one event at a time. Each time you click the left mouse button, the trace will advance one event. Clicking and holding the right mouse button while in this mode generates a continuous trace.

Trace Continuous

Select this option to write the trace continuously to the output device selected from the Trace Output submenu. This is useful when you do not know exactly where to begin or end the trace. Clicking and holding the right mouse button stops the trace until you release the button.

Filtered Trace...

When you view the Trace during simulation, you see a list of all the events that occur as your model is running.

Although it may be helpful to view every event in the simulation, there are many times when you will want to focus on just the events that affect specific elements (locations, resources, variables, etc.) of your model.

The Trace feature contains an optional, custom filter, which allows you to pick the elements of your model, or custom text string, that you wish to view in the Trace window.

 

From the Custom Trace Options dialog, you may choose which elements of your model you want displayed in the Trace window.

The Custom Filter works by showing the specified elements in the trace according to the following:

Specified elements found in the main heading of the Trace will be displayed along with the entire contents of the sub-headings.

Specified elements found in a sub-heading will only display the main heading and the sub-heading with the specified element. All other sub-headings of the main heading, which do not contain the specified elements, will not be displayed.

The Enable button in the Custom Trace Options dialog must be checked for the Trace Filter to take effect.

Output to File

Select this option to send the trace listing to a text file. Trace statements are automatically written to a <model name>.TRC file.